css: Replace _AFFECTS_TEXT with _TEXT_SIZE and _TEXT_CLIP
authorTimm Bäder <mail@baedert.org>
Thu, 12 Oct 2017 11:18:07 +0000 (13:18 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 10 Dec 2017 01:16:02 +0000 (20:16 -0500)
commit492469a94af35c2b102bcf7f07046ef2d09b2b3d
tree7411269ff88bbd6a216586de576ed7c156385c24
parentecc9946566a1614cab3126647f130fd169591124
css: Replace _AFFECTS_TEXT with _TEXT_SIZE and _TEXT_CLIP

It was used to mark css properties that affect widgets with text, but it
caused unnecessary invalidations. E.g. 'color' was marked as
AFFECTS_TEXT but changing just the color of a label should not
automatically queue a resize, which is what the code in
gtk_widget_real_style_updated does.

Replace this flag with GTK_CSS_AFFECTS_TEXT_SIZE and
GTK_CSS_AFFECTS_TEXT_CLIP, which GtkWidget can use only if the widget
actually has text.

https://bugzilla.gnome.org/show_bug.cgi?id=791281
gtk/gtkbuiltinicon.c
gtk/gtkcssstylepropertyimpl.c
gtk/gtkcsstypesprivate.h
gtk/gtkprogressbar.c
gtk/gtkscale.c
gtk/gtkswitch.c
gtk/gtktextview.c
gtk/gtkwidget.c